package com.lhd.action.chain;

/**
 * @Author: liuhd
 * @Date: 2024/12/17 19:44
 * @Description:
 */
public class ConcreteHandlerA extends Handler {
    public ConcreteHandlerA(Handler handler){
        this.handler = handler;
    }
    @Override
    public void handleRequest(int param) {
        if (param == 1){
            System.out.println("A处理,则处理");
        }else{
            handler.handleRequest(param);
        }
    }
}
